package com.yinhai.model;

import java.io.Serializable;

import android.text.SpannableString;

import com.tgb.lk.ahibernate.annotation.Column;
import com.tgb.lk.ahibernate.annotation.Id;
import com.tgb.lk.ahibernate.annotation.Table;

@Table(name = "msg_model") 
public class MsgModel  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 521042925516594995L;
	@Id
	@Column(name = "id")
	public int id;
	@Column(name = "send_user_id",length=100)
	public String sendUserId;//发送者ID
	@Column(name = "send_user_name", length = 100)
	public String sendUserName;//发送者姓名
	@Column(name = "rec_id", length = 100)
	public String recId;//接受者ID
	@Column(name = "rec_name", length = 100)
	public String recName;//接收者姓名
	@Column(name = "content", length = 5000)
	public String content;//发送内容 
	@Column(name = "con_type", length = 2)
	public String conType;//1:文字，2:图片文件,3:声音文件,4:定位
	@Column(name = "send_date", length = 16)
	public String sendDate;//发送时间 
	@Column(name = "is_group", length = 2)
	public String isGroup;//0个人消息，1群组消息
	@Column(name = "group_id", length = 12)
	public String groupId;//群组ID
	@Column(name = "status", length = 1)
	public String status;// 1:正在发送 2：成功 3：失败
	@Column(name = "parent_id")
	public int parent_id;//消息列表id
	@Column(name = "uuid",length = 36)
	public String uuid;//消息列表标示id
	@Column(name = "isreceipt",length = 2)
	public String isreceipt;//消息列表标示id
	@Column(name = "latitude",length = 12)
	public String latitude;//定位经度
	@Column(name = "longitude",length = 12)
	public String longitude;//定位纬度
	@Column(name = "second",length = 12)
	public String second;//语音时长
	@Column(name = "fileName")
	private String fileName;
	@Column(name="guid",length=50 )
	private Long guid;
	
	private String text;
	private SpannableString spStr;
	private String groupName;
	
	public String getGroupId() {
		return groupId;
	}
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	public String getIsGroup() {
		return isGroup;
	}
	public void setIsGroup(String isGroup) {
		this.isGroup = isGroup;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getSendUserId() {
		return sendUserId;
	}
	public void setSendUserId(String sendUserId) {
		this.sendUserId = sendUserId;
	}
	public String getSendUserName() {
		return sendUserName;
	}
	public void setSendUserName(String sendUserName) {
		this.sendUserName = sendUserName;
	}
	public String getRecId() {
		return recId;
	}
	public void setRecId(String recId) {
		this.recId = recId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getConType() {
		return conType;
	}
	public void setConType(String conType) {
		this.conType = conType;
	}
	public String getSendDate() {
		return sendDate;
	}
	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}
	public String getRecName() {
		return recName;
	}
	public void setRecName(String recName) {
		this.recName = recName;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public int getParent_id() {
		return parent_id;
	}
	public void setParent_id(int parent_id) {
		this.parent_id = parent_id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public SpannableString getSpStr() {
		return spStr;
	}
	public void setSpStr(SpannableString spStr) {
		this.spStr = spStr;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public String getIsreceipt() {
		return isreceipt;
	}
	public void setIsreceipt(String isreceipt) {
		this.isreceipt = isreceipt;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getSecond() {
		return second;
	}
	public void setSecond(String second) {
		this.second = second;
	}
	public Long getGuid() {
		return guid;
	}
	public void setGuid(Long guid) {
		this.guid = guid;
	}
	
}
